<?xml version="1.0" encoding="ISO-8859-15"?>
<!-- DOC - TP XSLT -->
<!--cuisine2livre.xsl -->
<xsl:stylesheet version="2.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" version="1.0" indent="yes"	encoding="UTF-8" 
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
		doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>
		
	<xsl:template match="/recettes">
<!-- Produire une page XHTML -->
		<html>
			<head>
				<title>Question 5 XSLT</title>
			</head>
			<body>
				<xsl:apply-templates select="recettes"/>
				<ol>
				<xsl:for-each select="recette">
				<xsl:sort select="nom" />
					<li><a href=""><xsl:value-of select="nom"/></a></li>
				</xsl:for-each>
				</ol>
				<xsl:for-each select="recette">
				    <table>
				    	<xsl:value-of select="nom"/>
				    	<xsl:for-each select="ingredient">
				    		<xsl:value-of select="@qte"/>
				    		<!-- choice -->
				    		<xsl:value-of select="@unit"/>			    	
				    		<xsl:value-of select="@nom"/>
				    	</xsl:for-each>
				    </table>
			    </xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>